

<div class="col-sm-12 mt20" >
<div class="panel panel-default">
<div class="panel-body">
<div class="col-sm-12">

    <div class="row">
        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="searchform.code" placeholder="产品编号">
        </div>
        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="searchform.name" placeholder="产品名称"> 
        </div>
        <div class="col-sm-2">
            
        </div>
        <div class="col-sm-2">
           
        </div>

        <div class="col-sm-2 col-sm-offset-2">
            <button class="btn btn-block btn-info" ng-click="load(searchform)">搜索</button> 
        </div>

    </div>

</div>
</div>
</div>
<!-- searchArea -->

<div class="panel panel-default">
    <div class="panel-body">
        <table class="table table-condensed table-hover table-bordered">
            <thead>
                <tr>
                    <th class="col-md-4 text-center">描述</th>
                    <th class="col-md-2 text-center">金额</th>
                    <th class="col-md-4 text-center">限制</th>
                    <th class="col-md-2 text-center">操作</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="obj in objs">
                    <td class="">
                        {{obj.description}}<br>
                        使用范围：{{obj.rangename}}
                    </td>
                    <td class="text-center">
                        {{obj.money * 0.01 | currency : '￥'}}<br>
                        库存：{{obj.stock_num}}
                    </td>
                    <td class="text-center">
                        满 {{obj.cut * 0.01 | currency : '￥'}} 可用<br>
                        有效期：{{obj.start_date}} - {{obj.end_date}}
                    </td>
                    <td class="text-center">
                        <a ng-click="edit(obj.id)" class="btn btn-success btn-xs">设置</a>
                        <a ng-if="obj.range == '1'" ng-click="product(obj)" class="btn btn-info btn-xs">配置产品</a>
                        <a ng-click="del(obj)" class="btn btn-danger btn-xs">删除</a>
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="text-right">
             <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="load()" previous-text="上一页" next-text="下一页"
                first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
                class="m-t-none m-b">
            </pagination>
        </div>
    </div>
</div>

</div>